<!-- add js -->
{include file="silabus/teori/detail_edit_js.html"}
<!-- end off add js-->
<div class="breadcrumbs">
    <div class="container-fluid">
        <ul class="bread pull-left">
            <li><a href="{$config->site_url('silabus/teori')}">Silabus</a></li>
            <li><a href="{$config->site_url('silabus/teori')}">Silabus Teori</a></li>
            <li><a href="{$config->site_url('silabus/teori/manage')}/{$rs_info.tahun}/{$rs_info.semester}/{$rs_info.dosen_kd}/{$rs_info.makul_kd}">Manage</a></li>
            <li><a href="{$config->site_url('silabus/teori/detail')}/{$rs_info.silabus_kd}">{$rs_info.silabus_deskripsi}</a></li>
            <li class="active"><a href="#">Edit</a></li>
        </ul>
    </div>
</div>
<div class="row-fluid">
    <div class="span12">
        <div class="box">
            <div class="box-head">
                <h3>Tambah Item Silabus</h3>
            </div>
            <div class="box-content">
                <!-- notification template -->
                {include file="base/templates/notification.html"}
                <!-- end of notification template-->
                <form action="{$config->site_url('silabus/teori/detail_edit_process')}" class="form-horizontal" method="post" enctype="multipart/form-data">
                    <input type="hidden" name="silabus_kd" value="{$rs_info.silabus_kd|default:''}" />
                    <input type="hidden" name="silabus_detail_kd" value="{$result.silabus_detail_kd|default:''}" />
                    <div class="control-group">
                        <label class="control-label">Minggu</label>
                        <div class="controls">
                            <input type="text" class="span1" name="minggu" value="{$result.minggu|default:''}" maxlength="2" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">Kompetensi Dasar</label>
                        <div class="controls">
                            <input type="text" class="span12" name="kompetensi_dasar" value="{$result.kompetensi_dasar|default:''}" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">Materi Pokok</label>
                        <div class="controls">
                            <div id="item-materi">
                                <input type="text" class="span8 input-append" name="add_materi" value="" placeholder="Isikan materi pokok"/>
                                <span class="add-on"><input type="button" class="btn-mini" value="+" onclick="addMateri(this.form);"/></span>
                                {foreach from=$rs_materi item=m key=i}
                                {$mNum = $i+1}
                                <div id="matNum{$mNum}">
                                    <br/>
                                    <input type="text" class="span8 input-append" name="materi[]" value="{$m.materi_content}" style="background-color: #F4F4F4;" />
                                    <span class="add-on"><input type="button" class="btn-mini" value="-" onclick="removeMateri({$mNum});"/></span>
                                </div>
                                {/foreach}
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">Indikator Kompetensi</label>
                        <div class="controls">
                            <div id="item-indikator">
                                <input type="text" class="span8 input-append" name="add_indikator" value="" placeholder="Isikan indikator kompetensi"/>
                                <span class="add-on"><input type="button" class="btn-mini" value="+" onclick="addIndikator(this.form);"/></span>
                                {foreach from=$rs_indikator item=k key=i}
                                {$iNum = $i+1}
                                <div id="indNum{$iNum}">
                                    <br/>
                                    <input type="text" class="span8 input-append" name="indikator[]" value="{$k.indikator_content}" style="background-color: #F4F4F4;" />
                                    <span class="add-on"><input type="button" class="btn-mini" value="-" onclick="removeIndikator({$iNum});"/></span>
                                </div>
                                {/foreach}
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">Sumber</label>
                        <div class="controls">
                            <div id="item-sumber">
                                <input type="text" class="span8 input-append" name="add_sumber" value="" placeholder="Isikan sumber/referensi"/>
                                <span class="add-on"><input type="button" class="btn-mini" value="+" onclick="addSumber(this.form);"/></span>
                                {foreach from=$rs_sumber item=s key=i}
                                {$sNum = $i+1}
                                <div id="sumNum{$sNum}">
                                    <br/>
                                    <input type="text" class="span8 input-append" name="sumber[]" value="{$s.sumber_content}" style="background-color: #F4F4F4;" />
                                    <span class="add-on"><input type="button" class="btn-mini" value="-" onclick="removeSumber({$sNum});"/></span>
                                </div>
                                {/foreach}
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">Evaluasi/Penilaian</label>
                        <div class="controls">
                            <input type="text" class="span6" name="evaluasi" value="{$result.evaluasi|default:''}" maxlength="100" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">Keterangan</label>
                        <div class="controls">
                            <textarea name="keterangan" rows="2" class="span8">{$result.keterangan|default:''}</textarea>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">File</label>
                        <div class="controls">
                            <input type="file" name="file" />
                            {$file_download}
                        </div>
                    </div>
                    <div class="form-actions">
                        <button class="btn btn-primary" type="submit">SIMPAN</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>